const { ccclass, property } = cc._decorator;

@ccclass
export default class RedDot extends cc.Component {
    Init(str) {
        this.node.getChildByName("Label").active = true;
        this.node.getChildByName("Label").getComponent(cc.Label).string = str.toString();
    }
}
